<%@page import="com.ambow.utils.PageResults"%>
<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@page import="com.ambow.entity.*"%>
<%@page import="com.ambow.dao.*"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<style type="text/css">
div.basic-grey {
	margin-left: auto;
	margin-right: auto;
	max-width: 500px;
	padding: 25px 15px 25px 10px;
	font: 12px Georgia, "Times New Roman", Times, serif;
	text-shadow: 1px 1px 1px #FFF;
	border: 1px solid #E4E4E4;
	border-top-left-radius: 15px;
	border-top-right-radius: 15px;
	border-bottom-right-radius: 15px;
	border-bottom-left-radius: 15px;
	box-shadow: 0 0 0 10px rgba(255, 235, 205, 0.5)
}

div.basic-grey h1 {
	font-size: 25px;
	padding: 0px 0px 10px 40px;
	display: block;
	border-bottom: 1px solid #E4E4E4;
	margin: -10px -15px 30px -10px;;
	color: #888;
}

div.basic-grey h1>span {
	display: block;
	font-size: 11px;
}

div.basic-grey label {
	display: block;
	margin: 0px;
}

div.basic-grey label>span {
	float: left;
	width: 20%;
	text-align: right;
	padding-right: 10px;
	margin-top: 10px;
	color: #888;
}

div.basic-grey input[type="text"], .basic-grey input[type="email"],
	.basic-grey textarea, .basic-grey select {
	border: 1px solid #DADADA;
	color: #888;
	height: 30px;
	margin-bottom: 16px;
	margin-right: 6px;
	margin-top: 2px;
	outline: 0 none;
	padding: 3px 3px 3px 5px;
	width: 70%;
	font-size: 12px;
	line-height: 15px;
	box-shadow: inset 0px 1px 4px #ECECEC;
	-moz-box-shadow: inset 0px 1px 4px #ECECEC;
	-webkit-box-shadow: inset 0px 1px 4px #ECECEC;
}

div.basic-grey textarea {
	padding: 5px 3px 3px 5px;
}

div.basic-grey select {
	background: #FFF url('down-arrow.png') no-repeat right;
	background: #FFF url('down-arrow.png') no-repeat right);
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	text-indent: 0.01px;
	text-overflow: '';
	width: 70%;
	height: 35px;
	line-height: 25px;
}

div.basic-grey textarea {
	height: 100px;
}

div.basic-grey .button {
	background: #E27575;
	border: none;
	padding: 10px 25px 10px 25px;
	color: #FFF;
	box-shadow: 1px 1px 5px #B6B6B6;
	border-radius: 3px;
	text-shadow: 1px 1px 1px #9E3F3F;
	cursor: pointer;
}

div.basic-grey .button:hover {
	background: #CF7A7A
}
</style>
<style type="text/css">
* {
	margin: 0;
	padding: 0;
	-webkit-touch-callout: none;
	/* prevent callout to copy image, etc when tap to hold */
	-webkit-text-size-adjust: none;
	/* prevent webkit from resizing text to fit */
	-webkit-tap-highlight-color: rgba(210, 210, 210, 0.35);
	/* make transparent link selection, adjust last value opacity 0 to 1.0 */
	-webkit-user-select: none;
	/* prevent copy paste, to allow, change 'none' to 'text' */
}

body {
	font-family: "微软雅黑";
	font-size: 12px;
}

ul, li {
	list-style: none;
}

.ylcon {
	width: 100%;
	min-width: 320px;
}

.tit {
	height: 26px;
	line-height: 26px;
	padding: 0px 15px;
	position: relative;
	font-size: 15px;
	color: #aaa;
	border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.story {
	border-bottom: 1px dashed #cecece;
	padding: 0 15px 3px;
	position: relative;
}

.story_t {
	font-size: 1.2em;
	color: rgba(0, 0, 0, 1);
	padding-top: 5px;
	padding-bottom: 2px;
	text-align: left;
}

.story_m {
	color: rgba(110, 110, 110, 1);
	line-height: 21px;
	word-break: break-all;
	word-wrap: break-word;
	overflow: hidden;
	font-size: 1.2em;
	padding: 2px 0;
	text-align: left;
}

.story_time {
	color: rgba(154, 154, 154, 1);
	padding: 2px 0;
	text-align: left;
}

.story_hf {
	background: rgb(245, 245, 245);
	font-size: 1.2em;
	border: 1px solid rgba(204, 204, 204, 0.2);
	border-radius: 2px;
	color: rgba(110, 110, 110, 1);
	padding: 4px;
	margin-bottom: 5px;
	text-align: left;
}

.opbtn {
	position: absolute;
	top: 0;
	right: 0;
}
</style>

</head>
<body bgcolor="#FFEBCD">
	<div style="text-align: center; margin-top: 140px" class="basic-grey">
		<p class="tit">留言和回复</p>
		<div id="messDivId">
			<%
			List<Post> post = (List)request.getAttribute("post1");
			Message message = (Message) request.getAttribute("message");
			Integer id = message.getId();
			for(int i=0;i<post.size();i++){%>
				<p class="story_t">
				留言者：<%=message.getUser().getName()%>
			</p>
			<p class="story_t">
				留言标题:<%=message.getTitle()%></p>
			<p class="story_time">
				留言时间：<%=message.getCreateTime()%></p>
			<p class="story_hf">
				留言内容:<%=message.getContent()%></p>
			
			<p class="story_t">
				回复者：<%=post.get(i).getMessage().getUser().getName()%>
			</p>
			<p class="story_t">
				回复标题:<%=post.get(i).getTitle()%></p>
			<p class="story_hf">
				回复内容:<%=post.get(i).getContent()%></p>
			<%
			}
			%>
			
			<a href="javascript:history.back()">返回</a>

		</div>
	</div>
</body>
</html>